<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>
<div class="blockBox rx yellow">
    <div class="label">
        <h1>牛库资深顾问</h1>
        <div class="curl">&nbsp;</div>
    </div>
    
    <?php
    $i = 0;
    foreach( $data as $item ) {
         $div_class =  $i ==0 ? "firstItem" : '';
         $url = url('node/'.$item->nid);
         $image_path = imagecache_create_url('promoted_box', $item->field_image[0]['filepath']);
     ?>
    <div class="box <?php print $div_class; ?>">
        <a href="<?php print $url; ?>" title="<?php print $item->title; ?>"><img class="maxi" src="<?php print base_path();?>sites/default/files/box_pic.png" style="background:url('<?php print $image_path;?>');" alt="<?php print $item->title;?>"></a>
        <h2><a href="<?php print $url;?>"><?php print $item->title . ' ' . $item->field_current_university[0][value]; ?></a></h2>
    </div>
    <?php
        $i++;
    }
    ?>
</div>